﻿// Tests.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <string>
#include <iostream>
#include "../SeqList/ArrayList.h"

using namespace std;

int main()
{
	wcout << "数组实现的线性表测试：" << endl;
	ISeqList<wstring*>* pList = new ArrayList<wstring*>();
	pList->Append(new wstring(L"jim"));
	pList->Append(new wstring(L"kate"));
	pList->Append(new wstring(L"mike"));
	pList->Insert(0, new wstring(L"bob"));
	pList->Remove(2);
	
	for (int i = 0; i < pList->Size(); ++i)
	{
		auto strAddr = (*pList)[i];
		wcout << strAddr << endl;
		wcout << *strAddr << endl;
	}
	
	for (int i = 0; i < pList->Size(); ++i)
	{
		delete (*pList)[i];
	}
	delete pList;
	
	system("pause");


	system("cls");
	wcout << "所有测试完成" << endl;
	system("pause");
}